<div>
    <div style="width: 80%">
        <form class="layui-form" id="menu-data" >
            <@>if (isEmpty(menu.parentName)){
            <@>} else {
            <div class="layui-form-item">
                <label class="layui-form-label">上级：</label>
                <label class="layui-form-label">${menu.parentName}</label>
            </div>
            <@>}
            <div class="layui-form-item">
                <label class="layui-form-label">图标：</label>
                <div class="layui-input-block">
                    <input type="text"  class="layui-input" id="icon" name="icon"
                           value="${menu.icon}" >
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">名称：</label>
                <div class="layui-input-block">
                    <input type="text" lay-verify="required" class="layui-input" id="name" name="name"
                           value="${menu.name}" >
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">网址：</label>
                <div class="layui-input-block">
                    <input type="text"  class="layui-input" id="url" name="url" value="${menu.url}"
                           >
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">排序：</label>
                <div class="layui-input-block">
                    <input type="text" lay-verify="required" class="layui-input" id="sortNo" name="sortNo"
                           value="${menu.sortNo}" >
                </div>
            </div>
            <div class="layui-form-item">
                <input type="hidden" name="id" value="${menu.id}">
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">类型：</label>
                <div class="layui-input-block" >
                    <select name="type" lay-filter="aihao" lay-verify="required" >
                        <option value=""></option>
                        <@>if (menu.type == 1) {
                        <option value="0">权限</option>
                        <option value="1" selected>菜单</option>
                        <@>} else if(menu.type == 0) {
                        <option value="0" selected>权限</option>
                        <option value="1">菜单</option>
                        <@>} else {
                        <option value="0">权限</option>
                        <option value="1">菜单</option>
                        <@>}
                    </select>
                </div>
            </div>
            <button type="button" lay-submit="" class="layui-btn" style="position: relative ;left: 40px" lay-filter="menu-detail">提交</button>
        </form>
    </div>
</div>